package com.ruoyi.web.controller.wq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.framework.web.service.UserCardService;
import com.ruoyi.wq.domain.vo.WqUserCardVO;

/**
 * 用户卡片Controller
 * 
 * @author ruoyi
 * @date 2023-01-28
 */
@RestController
@RequestMapping("/wq/card")
public class WqUserCardController extends BaseController{
	
    @Autowired
    private UserCardService userCardService;

    /**
     * 新增用户卡片
     */
    @PostMapping("/add")
    public AjaxResult add(@RequestBody WqUserCardVO wqUserCard){
        return AjaxResult.success(userCardService.insertWqUserCard(wqUserCard));
    }

}
